package org.scs.carleton.ca.pgdt.core.internal.parser;

import org.scs.carleton.ca.pgdt.core.parser.nodes.IASTLiteral;
import org.scs.carleton.ca.pgdt.core.parser.nodes.IASTNodeTypes;
import org.scs.carleton.ca.pgdt.core.visitor.PrologVisitor;

/**
 * Concrete class for Literals
 * 
 * @author tessierj
 *
 */
public class ASTLiteral extends ASTNode implements IASTLiteral {
	private String literal;
	
	public ASTLiteral(String theLiteral, ASTTranslationUnit tUnit) {
		super(tUnit, IASTNodeTypes.LITERAL);
		this.literal = theLiteral;
	}
	
	public String getLiteral() {
		return literal;
	}

	@Override
	public boolean accept(PrologVisitor visitor) {
		return visitor.visit(this);
	}
}
